<?php 
$hoy = strftime('%Y-%m-%H');
include('../Connections/KRAPPERCON.php');
$obj = 'VER_UTI';
include('../Connections/Accesos.php');

//$msg = checkObj($user_now,'MN_USERS');
if ($msg!= ''){
?>
<script type="text/javascript">
showError('<?php echo $msg; ?>');
</script>
<?php 
exit;
}
?>
<div>
<input type="button" onClick="searchUtil()" value="Buscar"/>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>Cond.Venta :</td>
    <td><select name="cb_lu_cvta" id="cb_lu_cvta">
        <option value="">Todos</option>
      </select>    </td>
  </tr>
  <tr>
    <td>Fecha Factura :</td>
    <td><input name="t_lu_cini"  class="tcal" type="text" id="t_lu_cini" size="12" maxlength="10">
a
  <input name="t_lu_cfin" type="text"  class="tcal" id="t_lu_cfin" size="12" maxlength="10"></td>
  </tr>
  <tr>
    <td>Local de Facturaci&oacute;n:</td>
    <td>
    <select name="cb_local_u" id="cb_local_u">
    <option value=""></option>
    <?php
//	$cladoc = 'FV';
	  include ('../Query_Min/getCentros.php');
	?>
    </select>
    </td>
  </tr>
  <tr>
    <td colspan="2"><input type="checkbox" name="chk_dia" id="chk_dia" />&nbsp;Mostrar Progreso Diario</td>
  </tr>
  <tr>
    <td colspan="2"><div id="d_rescon"></div></td>
  </tr>
</table>

<script type="text/javascript">
function searchUtil(){

var grp = 1;
if (GEBI('chk_dia').checked){
grp = 0;
}

$('#d_rescon').loadx('Consultas/Opers/queryUtil.php',
{oper : 'view', 
inicio : GEBI('t_lu_cini').value,
final : GEBI('t_lu_cfin').value,
cb_local : GEBI('cb_local_u').value,
group : grp
 }
);
}
</script>